REM ------- Install ?? on Dev -----------------------------------------
rem set InstallType=MajorUpgrade
set InstallType=VirginInstall
set SBEnv=Dev
set AddLocal=ALL
set SBDisableServices=
rem set SBDisableServices=ALL   or  <serviceName>  or <computerName>
set SBAlias=
rem set SBAlias=<computerName>
set SBDexCheckDisable=

IF /I %InstallType% == VirginInstall (
REM -----Virgin install initialization ------------------------------------
REM "Bad" passwords replace % with %%, prefix \ & | > < ^ etc with ^
set SBDomain=sys
set SBUserName=SaxoServiceTestDSSTP
set SBUserPassword=Mnfvbv3
)

CALL :DoInstall
Exit

:DoInstall
IF /I %InstallType% == MajorUpgrade (
msiexec /q /i "#MSI#.msi"  /l*vx "#MSI#.install.log"  SB_ENV="%SBEnv%"  ADDLOCAL="%AddLocal%" SB_ALIAS="%SBAlias%" REBOOT=ReallySuppress  WIXFAILWHENDEFERRED=0  SB_USERDUMP=0 SB_DEXCHECK_DISABLE="%SBDexCheckDisable%"
call install_CopyMsiLog.cmd "#MSI#.install.log"
goto :eof
)

IF /I %InstallType% == VirginInstall (
msiexec /q /i "#MSI#.msi"  /l*vx "#MSI#.install.log" SB_DOMAIN="%SBDomain%" SB_USER_NAME="%SBUserName%"  SB_PASSWORD="%SBUserPassword%"  SB_ENV="%SBEnv%"   ADDLOCAL="%AddLocal%" SB_DISABLE_SERVICES="%SBDisableServices%" SB_ALIAS="%SBAlias%" WIXFAILWHENDEFERRED=0  SB_USERDUMP=0  REBOOT=ReallySuppress  SB_DEXCHECK_DISABLE="%SBDexCheckDisable%"
call install_CopyMsiLog.cmd "#MSI#.install.log"
goto :eof
)
Exit -1